-- GENERATED SPELL FOR [Prince Thunderaan] --


function spell0_14435(pUnit, Event) --@Tears of the Wind Seeker,Self--
pUnit:FullCastSpellOnTarget(23011,pUnit)
pUnit:RegisterEvent('Sorts_14435', 610, 1)
end

function spell1_14435(pUnit, Event) --@Tendrils of Air,Self--
pUnit:FullCastSpellOnTarget(23009,pUnit)
pUnit:RegisterEvent('Sorts_14435', 2000, 1)
end

function Sorts_14435(pUnit, Event)
local choix_sorts_14435 = math.random(0, 1)
if choix_sorts_14435 == 0 then
pUnit:RegisterEvent('spell0_14435', 1, 1)
end
if choix_sorts_14435 == 1 then
pUnit:RegisterEvent('spell1_14435', 1, 1)
end
end

function mob14435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14435', math.random(1500, 3000), 1)
end

function mob14435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14435, 1, 'mob14435_Action')
RegisterUnitEvent(14435, 2, 'mob14435_Leave')
RegisterUnitEvent(14435, 3, 'mob14435_Kill')
RegisterUnitEvent(14435, 4, 'mob14435_Die')
